import React, { Component } from 'react'
export default function HOLlogin(Com) {
    return  class HOLlogin extends Component {
        componentDidMount() { 
            const user =localStorage.getItem("user")  ? JSON.parse(localStorage.getItem('user')) :{}
            if(!user.value1){
                this.props.history.push("/login")
            }
         }
   
  render() {
    return <Com {...this.props}></Com>
   
    
  }
}






}

